home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / usr / sybase / doc / dbsetluser.man < prev    next >
Text File  |  1993-04-22  |  2KB  |  89 lines

  1.  
  2.   1                       Version 4.0 -- 5/1/89               DBSETLUSER
  3.   ______________________________________________________________________
  4.  
  5.   NAME:  DBSETLUSER
  6.  
  7.   FUNCTION:
  8.        Set the username in the LOGINREC structure.
  9.  
  10.   SYNTAX:
  11.        RETCODE DBSETLUSER(loginrec, username)
  12.  
  13.        LOGINREC  *loginrec;
  14.        char      *username;
  15.  
  16.   COMMENTS:
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.   DBSETLUSER              Version 4.0 -- 5/1/89                        2
  25.   ______________________________________________________________________
  26.  
  27.        o This macro sets the username in the LOGINREC structure. For  it
  28.          to have any effect, it must be called before dbopen().
  29.  
  30.        o In most environments, this macro is optional.   If  it  is  not
  31.          called, DB-Library will generally set the default value for the
  32.          username.
  33.  
  34.  
  35.          Note for UNIX programmers:  On UNIX the  username  defaults  to
  36.          the UNIX login name.
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.   3                       Version 4.0 -- 5/1/89               DBSETLUSER
  47.   ______________________________________________________________________
  48.  
  49.  
  50.  
  51.  
  52.  
  53.   PARAMETERS:
  54.        loginrec -  A pointer to a  LOGINREC  structure,  which  will  be
  55.            passed  as  an argument to dbopen().  You can get one by cal-
  56.            ling dblogin().
  57.        username -  The username that will be  sent  to  SQL Server.   It
  58.            must  be  a  null-terminated  character  string.  The maximum
  59.            length of the string, not including the null  terminator,  is
  60.            30 characters.  SQL Server will use username to determine who
  61.            is attempting the connection.  The SQL Server  usernames  are
  62.            defined in the syslogins table in the master database.
  63.  
  64.   RETURNS:
  65.  
  66.  
  67.  
  68.   DBSETLUSER              Version 4.0 -- 5/1/89                        4
  69.   ______________________________________________________________________
  70.        SUCCEED or FAIL.
  71.  
  72.   SEE ALSO:
  73.        dblogin, dbopen, DBSETLHOST, DBSETLPWD, DBSETLAPP
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.